package com.hzy.fivepalace.db.vo.wx;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel(value = "购物车实体对象")
@Data
public class WxCartVo implements Serializable {


    @ApiModelProperty(value = "ID编号")
    private Integer id;

    @ApiModelProperty(value = "商品表的商品ID")
    private Integer goodsId;

    @ApiModelProperty(value = "商品编号")
    private String goodsSn;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品货品表的货品ID")
    private Integer productId;

    @ApiModelProperty(value = "加入时价格")
    private BigDecimal price;

    @ApiModelProperty(value = "当前价格")
    private BigDecimal newPrice;

    @ApiModelProperty(value = "数量")
    private Short number;

    @ApiModelProperty(value = "商品规格值列表，采用JSON数组格式")
    private String[] specifications;

    @ApiModelProperty(value = "是否选中状态")
    private Boolean checked;

    @ApiModelProperty(value = "商品图片")
    private String picUrl;

    @ApiModelProperty(value = "加入时间")
    private LocalDateTime addTime;

    /**
     * 商品总库存
     */
    @ApiModelProperty(value = "商品总库存")
    private Integer inventory;

    @ApiModelProperty(value = "规格id")
    private Integer specificationId;

    /**
     * 是否支持自提
     */
    @ApiModelProperty(value = "是否支持自提")
    private Boolean isSince;

}
